﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace UtilsORM.MySqlData;

[Index("r_addtime", Name = "R_Addtime (ASC)")]
[Index("r_code", Name = "R_Code")]
[Index("r_guid", Name = "R_Guid")]
[Index("r_status", Name = "R_IsValid")]
[Index("r_order", Name = "R_Order")]
[MySqlCharSet("utf8mb3")]
[MySqlCollation("utf8mb3_general_ci")]
public partial class bs_client_role
{
    [Key]
    public long r_id { get; set; }

    [Required]
    [StringLength(50)]
    public string r_guid { get; set; }

    public int r_code { get; set; }

    [Required]
    [StringLength(50)]
    public string r_name { get; set; }

    public string r_remark { get; set; }

    [StringLength(200)]
    public string r_url { get; set; }

    public int r_order { get; set; }

    /// <summary>
    /// 0正常，1禁用
    /// </summary>
    public int r_status { get; set; }

    [Required]
    [StringLength(50)]
    public string r_default_menu_guid { get; set; }

    [Column(TypeName = "datetime")]
    public DateTime r_addtime { get; set; }

    [StringLength(50)]
    public string r_add_cu_guid { get; set; }

    [Required]
    [StringLength(50)]
    public string r_c_guid { get; set; }
}
